package ${packageName}.entity;

import com.portal.admin.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.portal.admin.utils.excel.annotation.ExcelField;
import java.util.Date;
import java.util.List;

/**
*【${comments}】实体对象
*/

@TableName("${tableName}")
public class ${className} extends BaseEntity {
<#list attrs as attr>
    /*** ${attr.columnDesc} */
    private ${attr.columnFieldType} ${attr.columnFieldName};
</#list>
<#list attrs as attr>
    <#if attr.inputType == 'date'>
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    </#if>
    <#if attr.isPk==0>
    </#if>
    <#if isPort=='true'>
    @ExcelField(title="${attr.columnDesc}",<#if attr.inputType=='select'>dictType="${attr.dictType}",</#if>align=2, sort=${attr_index})
    </#if>
    public ${attr.columnFieldType} get${attr.columnFieldName?cap_first}() {
        return this.${attr.columnFieldName};
    }
    public void set${attr.columnFieldName?cap_first}(${attr.columnFieldType} ${attr.columnFieldName}) {
        this.${attr.columnFieldName} = ${attr.columnFieldName};
    }
</#list>
}